package com.kunzai.test_string;

public class OnTimeString {
    public static void main(String[] args) {


    }

    /**
     * 字符转字节method2
     */
    private static void method2() {
        char one;
        one = 'a';
        char two = 'b';

        byte sum = (byte) ((byte) one + (byte) two);
        System.err.println( (byte)two);
        System.out.println(sum);
    }

    /**
     * 字符转字节
     */
    private static void method1() {
        char one = 'a';
        byte a = (byte) one;
        System.out.println(a);
    }


}
